package yongjian.drp.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import yongjian.drp.dao.FlowCardDao;
import yongjian.drp.model.FlowCard;
import yongjian.drp.vo.FlowCardVO;

@Component
public class FlowCardService {

	private FlowCardDao flowCardDao;

	public FlowCardDao getFlowCardDao() {
		return flowCardDao;
	}
	@Resource
	public void setFlowCardDao(FlowCardDao flowCardDao) {
		this.flowCardDao = flowCardDao;
	}
	
	public void add(FlowCard fc) {
		flowCardDao.add(fc);
	}

	public void modify(FlowCard fc) {
		flowCardDao.modify(fc);
	}

	public void delete(int id) {
		flowCardDao.delete(id);
	}

	public List<FlowCardVO> queryByPage(int page, int rows, Map<String, Object> map) {
		return flowCardDao.queryByPage(page, rows, map);
	}

	public int getAllRecord(Map<String, Object> map) {
		return flowCardDao.getAllRecord(map);
	}	
}
